﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Media;

namespace _MetalSlug
{
   public class AudioManager
   {
       private Boolean _isMuting = true;
       public System.Boolean IsMuting
       {
           get { return _isMuting; }
           set { _isMuting = value; }
       }

       private SoundEffect _menuSelected;
       public SoundEffect MenuSelected
       {
           get { return _menuSelected; }
           set { _menuSelected = value; }
       }
       private Song _bgMusic;
       public Song BgMusic
        {
            get { return _bgMusic; }
            set { _bgMusic = value; }
        }
        private SoundEffect _explosion;
        public SoundEffect Explosion
        {
            get { return _explosion; }
            set { _explosion = value; }
        }
        private SoundEffect _menuBack;
        public SoundEffect MenuBack
        {
            get { return _menuBack; }
            set { _menuBack = value; }
        }
        private SoundEffect _menuSelect;
        public SoundEffect MenuSelect
        {
            get { return _menuSelect; }
            set { _menuSelect = value; }
        }
        private SoundEffect _playerDied;
        public SoundEffect PlayerDied
        {
            get { return _playerDied; }
            set { _playerDied = value; }
        }
        private SoundEffect _shotMiniGun;
        public SoundEffect ShotMiniGun
        {
            get { return _shotMiniGun; }
            set { _shotMiniGun = value; }
        }
        private SoundEffect _shotShotGun;
        public SoundEffect ShotShotGun
        {
            get { return _shotShotGun; }
            set { _shotShotGun = value; }
        }

        public AudioManager()
        {
            LoadContent();
        }

        public void LoadContent()
        {
         //   _explosion = Content.Load<SoundEffect>("Audio/explosion");
         //   _menuBack = Content.Load<SoundEffect>("Audio/menu_back");
            _menuSelect = GameUtil.LoadSoundEffect("Audio/selectSound");
            _explosion = GameUtil.LoadSoundEffect("Audio/explode"); 
           
            //_playerDied = Content.Load<SoundEffect>("Audio/player_died");
            _shotMiniGun = GameUtil.LoadSoundEffect("Audio/ShotMiniGun");
            _shotShotGun = GameUtil.LoadSoundEffect("Audio/AKShot");
            _bgMusic = GameUtil.LoadSong("Audio/BGSound");
            _menuSelected = GameUtil.LoadSoundEffect("Audio/enter"); 
        }
    }
     
}

